<table xmlns:th="http://www.thymeleaf.org" class="mdui-table mdui-table-selectable mdui-table-hoverable">
    <thead>
    <tr>
        <!--<th class="mdui-col-xs-1 mdui-text-center">用户id</th>-->
        <th class="mdui-col-xs-2 mdui-text-center">用户名称</th>
        <th class="mdui-col-xs-1 mdui-text-center">用户角色</th>
        <th class="mdui-col-xs-1 mdui-text-center">用户手机</th>
        <th class="mdui-col-xs-1 mdui-text-center">用户状态</th>
        <th class="mdui-col-xs-2 mdui-text-center">注册日期</th>
        <th class=" mdui-col-xs-1 mdui-text-center">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user : ${userList}">
        <input type="hidden" th:value="${user.userId}" name="userId">
        <!--<td th:text="${user.userId}" class="mdui-text-center"></td>-->
        <td th:text="${user.userName}" class="mdui-text-center"></td>
        <td th:switch="${user.userRole}" class="mdui-text-center">
            <span th:case="1" >管理员</span>
            <span th:case="0">员工</span>
        </td>
        <td th:text="${user.phone}" class="mdui-text-center"></td>
        <td th:switch="${user.deleteFlag}" class="mdui-text-center mdui-valign">
            <span th:case="0">正常</span>
            <span th:case="1">已删除</span>
        </td>
        <td th:text="${#dates.format(user.createDatetime,'yyyy-MM-dd')}" class="mdui-text-center"></td>
        <td class="mdui-text-center">
            <button class="mdui-btn mdui-btn-dense mdui-color-deep-purple" onclick="userDetail()">查看</button>
        </td>
    </tr>
    </tbody>
</table>
<div xmlns:th="http://www.thymeleaf.org" th:replace="component/pageNav::page(pageNum=${pageNum},pageSize=${pageSize},totalNum=${totalNum})"></div>
</div>
